package com.hmall.mapper;

import com.hmall.model.MallDealer;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@Repository
public interface MallDealerMapper extends MyMapper<MallDealer> {

    Integer selectByDeptId(@Param("deptId") Integer deptId);

    Integer selectDeptIdByDealerId(@Param("dealerId") int dealerId);

    MallDealer selectByUserId(@Param("userId") Integer userId);


    MallDealer selectAllByDeptId(@Param("deptId") Integer deptId);

    Integer selectManageIdBySalesmanId(@Param("userId") Integer userId);

    List<MallDealer> selectByDealerIdList(@Param("dealerIdList") List<Integer> sysUserDealerList);

    List<Integer> selectAllId();
}